package app.r_teenus.backend.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "DEVICE_TYPE")
public class DeviceType implements Serializable {


	/**
	 * 
	 */
	private static final long serialVersionUID = 1959882723518090132L;
	private Integer id = null;
	private String name = null;
	private Integer level = null;
	private Integer type = null;

	/**
	 * Gets id (primary key).
	 */
	@Id
	@Column(name = "DEVICE_TYPE")
	@SequenceGenerator(name = "device_type_id", sequenceName = "device_type_id", allocationSize = 1)
	@GeneratedValue(generator = "device_type_id")
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "TYPE_NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}
	@Column(name = "SUPER_TYPE_FK")
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

}
